package Filesystem::Filter;

# $Id: Filter.pm 325 2010-08-07 10:47:27Z dolbanavt $
# $Date: 2010-08-07 13:47:47 +0300 (Суб, 07 Авг 2010) $
# $HeadURL: https://robosearch.googlecode.com/svn/branches/reborn/lib/Filesystem/Filter.pm $
# $LastChangedRevision: 328 $

use parent qw( Filesystem );
use JIP::ToolSet;

our $VERSION = '1.0';

sub scratch_file {
    my $self = shift;

    return join q{.}, (
        'ftp_filter',
        $self->get_host->get_id,
        'yaml',
        'tmp',
    );
}

sub output_file {
    my $self = shift;

    return join q{.}, ( 'ftp_filter', $self->get_host->get_id, 'yaml' );
}

1;

__END__

=head1 NAME

Filesystem::Filter - файловая система фильтра

=head1 SYNOPSIS

    use Filesystem::Filter;

    my $t = Filesystem::Filter->new(
        host_object => Host->new(),
        scratch_dir => '/path/to/scratch',
        output_dir  => '/path/to/output',
    );

    # имя временного файла создаваемого фильтром
    say $fs->scratch_file();

    # путь к временному файлу фильтра
    say $fs->scratch_file_location();

    # имя файла создаваемого фильтром
    say $fs->output_file();

    # путь к файлу который генерирует фильтр
    say $fs->output_file_location();


=head1 DEPENDENCIES

JIP::ToolSet (from base_lib)

=head1 AUTHOR

Vladimir Zhavoronkov, <dolbanavt (at) Google Mail>

http://dolbanavt.livejournal.com/

=head1 LICENSE AND COPYRIGHT

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

=cut
